package bma.common.mq.outer.po;

public enum SEND_RESULT {
	SUCCESS(0,"发送成功！"),NULL(-1,"发送消息为空！"),VALID(-2,"发送消息格式错误！"),DUPLICATE(-3,"消息重复发送！"),FAIL(1,"发送失败！");
	
	private int code;
	private String msg;
	
	private SEND_RESULT(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public final boolean equal(SEND_RESULT result){
		return this.code == result.code;
 	}
}
